package com.cgc.venus.server.core.exception;

/**
 * 平台异常类定义
 * Created by 业哥 on 2017/09/01.
 */
public class VenusException extends Exception{
    private Integer code;    //错误码
    private String message; //错误码信息

    public VenusException(Integer code, String message) {
        this.code=code;
        this.message=message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
